package jdl.databaseObjects;

public abstract class DbType {
	public abstract String getTypeAsString();

	@Override
	public boolean equals(Object obj) {
		if (obj != null && DbType.class.isAssignableFrom(obj.getClass())) {
			String typeAsString = ((DbType) obj).getTypeAsString();
			return typeAsString.compareToIgnoreCase(getTypeAsString()) == 0;
		}
		return super.equals(obj);
	}

	public int getSize() {
		return 0;
	}
}
